package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"shenzhou/B/api/internal/config"
	"shenzhou/B/srv/carclient"
)

type ServiceContext struct {
	Config  config.Config
	CarSrvs carclient.Car
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:  c,
		CarSrvs: carclient.NewCar(zrpc.MustNewClient(c.CarSrvs)),
	}
}
